<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/jstl/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/jstl/fn.tld" prefix="fn" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<html lang="zh-CN">
  <head>
   <base href="<%=basePath%>">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title>汽车用品销售后台管理</title>
	<!--指定默认跳转iframe-->
	<base target="main" />
	<!--标题图标-->
 	<link rel="shortcut icon" type="image/x-icon" href="<%=basePath%>assets/x-img/logo-title-adminTwo.ico" media="screen" />
	<link rel="stylesheet" type="text/css" href="<%=basePath%>assets/bootstrap/css/resetPro.css">
	<link href="<%=basePath%>assets/bootstrap/css/bootstrap-combined.min.css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery-2.0.0.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery-ui.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery.ui.touch-punch.min.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/js/jquery.htmlClean.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/ckeditor/ckeditor.js"></script>
	<script type="text/javascript" src="<%=basePath%>assets/bootstrap/ckeditor/config.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=basePath%>assets/bootstrap/Font-Awesome-3.2.1/css/font-awesome.min.css">
	<!--这个js有时候会冲突-->
	<!--<script type="text/javascript" src="<%=basePath%>bootstrap/js/scripts.js"></script>-->
	
	
	<style type="text/css">
		.blackAndStrong{
		/*color: #000000!important;*/
		font-weight: 700 !important;;
		}
		a:hover{
		text-decoration: none!important;
		}
		.menuhead{
			/*margin-top: 20px;*/
			margin-bottom: 5px;
		}
		.menubody{
			margin: 1px;
		}
		.menufoot{
			margin-top:  -15px;
		}
		.borderStrong{
			border: 5px solid #dee5e5;
		}
		.redBorder{
			/*border:4px solid #DA4F49;*/
			margin-left:20px ;
			padding-left: 0px;
			/*border-left:1px solid #DA4F49;*/
		}
		.cellFunCls{
			display: block;
			color: #fff;
			font-weight: 700;
			font-size: 11px;
			margin:8px 0px;
			padding:2px 10px;
			border-radius: 3px;
			/*background-color: #339BB9;*/
			background-color: #2D6987;
			border-left:5px solid #DA4F49;
		}
		.cellFunCls:hover{
			color: #fff;
			background-color: #DA4F49;
			/*border-left:5px solid #339BB9;*/
			/*background-color: #2D6987;*/
		}
		.cheSpan{
			display: inline-block!important;
			min-width: 25px;
		}
		.z5{
			margin: 0px 5px;
		}
		.one{
			display:block;
		}
		.one>.user{
			float:right;
		}
		.toHign{
			height: 30px;
			min-width: 150px!important;
		}
	</style>
  </head>
  <body>
   <div class="container-fluid">
	<div class="row-fluid">
		<div class="span12">
			<div class="navbar navbar-inverse">
				<div class="navbar-inner">
					<div class="container-fluid ">
						 <a data-target=".navbar-responsive-collapse" data-toggle="collapse" class="btn btn-navbar">
						 <span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a> 
						 <a href="#" target="_top" class="brand"><span class="icon-briefcase"></span>
						 &nbsp;&nbsp;&nbsp;汽车用品销售系统后台</a>
						<div class="nav-collapse collapse navbar-responsive-collapse">
							<ul class="nav pull-right">
								<li class="divider-vertical">
								</li>
								<li>
									<a href="#" target="_top">小组成员:</a>
								</li>
								<li>
									<a href="#" target="_top" title="李松坚(组长)、王小强、田芳、张奇、贾岩">
									李、王、田、张、贾</a>
								</li>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<div class="row-fluid">
				<!--功能菜单 -->
				<div class="span2">
					<!--头部信息-->
					<div class="menuhead">
						<a class="label label-important" style="display: block;" href="<%=basePath%>sys/welcome.jsp">
						<span class="icon-home icon-5x"></span><span>后台管理</span></a>
					</div>
					<!--手风琴功能菜单-->
					<div class="menubody">
						<div class="accordion" id="accordion-351685">
							<!--个人信息查看-->
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-info" href="<%=basePath%>admin/welcome" >
									 	<span class="icon-user cheSpan"></span>欢迎页</a>
								</div>
							</div>
							<!-- 功能区 -->
							<!-- 会员管理 -->
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-success collapsed " data-toggle="collapse" 
									 				data-parent="#accordion-351685" href="#accordion-element-467603" onclick="chevronChang(this)">
									 			<span class="icon-chevron-right cheSpan" ></span>会员管理</a>
								</div>
								<div id="accordion-element-467603" class="accordion-body collapse">
									<div class="accordion-inner" >
										<a href="<%=basePath%>adminMember/show" target="main"><span class="cellFunCls">
											<span class="icon-bookmark cheSpan"></span>会员账户控制
											</span>
										</a>
										<a href="<%=basePath%>errPage" target="main"><span class="cellFunCls">
											<span class=" icon-pencil cheSpan"></span>会员密码重置
											</span>
										</a>
									</div>
								</div>
							</div>
							<!-- 商品管理 -->
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-success collapsed " data-toggle="collapse" 
									 				data-parent="#accordion-351685" href="#accordion-element-467604" onclick="chevronChang(this)">
									 			<span class="icon-chevron-right cheSpan" ></span>商品管理</a>
								</div>
								<div id="accordion-element-467604" class="accordion-body collapse">
									<div class="accordion-inner redBorder" >
										<a href="<%=basePath%>goods/show" target="main"><span class="cellFunCls">
											<span class="icon-tag cheSpan"></span>商品基本管理
											</span>
										</a>
										<a href="<%=basePath%>groupShip/show" target="main"><span class="cellFunCls">
											<span class="icon-tag cheSpan"></span>商品所属类别管理
											</span>
										</a>
										<a href="<%=basePath%>errPage" target="main"><span class="cellFunCls">
											<span class=" icon-star cheSpan"></span>商品信息统计
											</span>
										</a>
									</div>
								</div>
							</div>
							<!-- 商品分类管理 -->
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-success collapsed " data-toggle="collapse" 
									 				data-parent="#accordion-351685" href="#accordion-element-467607" onclick="chevronChang(this)">
									 			<span class="icon-chevron-right cheSpan" ></span>商品组管理</a>
								</div>
								<div id="accordion-element-467607" class="accordion-body collapse">
									<div class="accordion-inner redBorder" >
										<a href="<%=basePath%>goodsGroup/show" target="main"><span class="cellFunCls">
											<span class="icon-tag cheSpan"></span>商品组基本管理
											</span>
										</a>
										<a href="<%=basePath%>errPage" target="main"><span class="cellFunCls">
											<span class=" icon-star cheSpan"></span>商品组信息统计
											</span>
										</a>
									</div>
								</div>
							</div>
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-success collapsed " data-toggle="collapse" 
									 				data-parent="#accordion-351685" href="#accordion-element-467605" onclick="chevronChang(this)">
									 			<span class="icon-chevron-right cheSpan" ></span>商品订单管理</a>
								</div>
								<div id="accordion-element-467605" class="accordion-body collapse">
									<div class="accordion-inner" >
										<a href="<%=basePath%>adminOrder/show" target="main"><span class="cellFunCls">
											<span class="icon-tag cheSpan"></span>基本管理
											</span>
										</a>
										<a href="<%=basePath%>errPage" target="main"><span class="cellFunCls">
											<span class=" icon-star cheSpan"></span>历史订单统计
											</span>
										</a>
									</div>
								</div>
							</div>
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-success collapsed " data-toggle="collapse" 
									 				data-parent="#accordion-351685" href="#accordion-element-467606" onclick="chevronChang(this)">
									 			<span class="icon-chevron-right cheSpan" ></span>商品评价管理</a>
								</div>
								<div id="accordion-element-467606" class="accordion-body collapse">
									<div class="accordion-inner" >
										<a href="<%=basePath%>errPage" target="main"><span class="cellFunCls">
											<span class="icon-tag cheSpan"></span>基本管理
											</span>
										</a>
										<a href="<%=basePath%>errPage" target="main"><span class="cellFunCls">
											<span class=" icon-star cheSpan"></span>商品评价统计
											</span>
										</a>
									</div>
								</div>
							</div>
							<!--轮换图管理-->
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-success" href="<%=basePath%>topShow/show" >
									 	<span class=" icon-leaf cheSpan"></span>Top-Show管理</a>
								</div>
							</div>
							<!--注销信息-->
							<div class="accordion-group borderStrong">
								<div class="accordion-heading">
									 <a class="accordion-toggle label badge-warning" href="<%=basePath%>admin/logout" target="_top">
									 	<span class="icon-off cheSpan"></span>退出登录</a>
								</div>
							</div>
						</div>
					</div>
					<!--尾部-->
					<div class="menufoot">
						<a class="label label-important toHign" style="display: block;" href="#" target="_top">
						<span class="icon-3x"></span><span>&nbsp;</span></a>
					</div>
				</div>
				<!-- 主体内容展现 -->
				<div class="span10">
					<div class="content">
						<iframe name="main" height="600px" width="100%" scrolling="auto"
							frameborder="0" src="<%=basePath%>admin/welcome">
						</iframe>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script type="text/javascript">
		function chevronChang(x){
			var one=$(x).children('span');
			var flag=one.hasClass('icon-chevron-down');
			
			var theDown=$('.icon-chevron-down');
		  theDown.removeClass('icon-chevron-down');
			theDown.addClass('icon-chevron-right');
			
//			alert(one.attr('class'));
			if(flag){
				one.removeClass('icon-chevron-down');
				one.addClass('icon-chevron-right');
			}else{
					one.removeClass('icon-chevron-right');
					one.addClass('icon-chevron-down');
			}
			
		}
</script>
</html>
